﻿<Window x:Class="WorkflowApplication.WorkflowApp"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" MinHeight="600" MinWidth="600"
    Title="Workflow Application" Width="1000" Height="700" WindowState="Maximized"  AutomationProperties.AutomationId="WorkflowApp"
    Icon="/Microsoft.Research.ScientificWorkflow.TridentUtilities;component/Images/WorkflowApplication/WorkflowApplicationIcon.ico"
    xmlns:Controls="clr-namespace:WorkflowApplicationControls;assembly=Microsoft.Research.WorkflowApplicationControls">
    <Grid x:Name="mainParentGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="70"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,0.665" StartPoint="0.5,0">
                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                <GradientStop Color="#FFF3F3F3" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>

        <!--Toolbar.-->
        <Grid Name="toolBarHolder" AutomationProperties.AutomationId="toolBarHolder" HorizontalAlignment="Stretch">
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.983,0.513" StartPoint="0.009,0.513">
                    <GradientStop Color="#FF81C5DE" Offset="0"/>
                    <GradientStop Color="#FF1999CA" Offset="1"/>
                    <GradientStop Color="#FFB5E0F0" Offset="0.304"/>
                </LinearGradientBrush>
            </Grid.Background>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,-14.959,237.227,0" VerticalAlignment="Top" Width="99.546" Height="50.079" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,-7.241,109.278,0" Width="43.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Top" Height="29.956">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,22.999,202.278,11.152" Width="71.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#26FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,14.041,42.278,12.344" Width="99.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,-2.494,-16.721,0" Width="78.216" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Top" Height="39.349">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,10.847,315.279,20.804" Width="53.216" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Path Fill="#33FFFFFF" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" HorizontalAlignment="Right" Margin="0,9.618,134.278,0" Width="59.546" RenderTransformOrigin="0.5,0.5" Data="M0.5,7.001 C0.5,3.4105968 3.4105968,0.5 7.001,0.5 L84.303,0.5 C87.893403,0.5 90.804,3.4105968 90.804,7.001 L90.899001,32.196912 C90.899001,35.787315 87.893403,39.9038 84.303,39.9038 L7.001,45.48 C3.4105968,45.48 0.5,42.569403 0.5,38.979 z" VerticalAlignment="Top" Height="33.956">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="6.117"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0.0050905405498014034"/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
            <Grid Name="toolBarGrd"/>
        </Grid>

        <!--Main Area, left and center panes.-->
        <Grid HorizontalAlignment="Stretch" Grid.Column="0" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Name="leftPaneColDefn" Width="0.255*" MaxWidth="400" MinWidth="150"/>
                <ColumnDefinition Name="centerPaneColDefn" Width="0.745*"/>
            </Grid.ColumnDefinitions>
            <!--Left pane-->
            <Border Margin="5,5,0,5" VerticalAlignment="Stretch" Height="Auto" BorderBrush="#FFE0E0E0" BorderThickness="1,1,1,1" CornerRadius="5,5,5,5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="28.16"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="0" CornerRadius="5,5,0,0">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFFBFBFB" Offset="0"/>
                                <GradientStop Color="#FFEBEBEB" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <TextBlock Margin="8,3,0,0" TextWrapping="Wrap"><Run FontSize="14" Text="Workflows"/></TextBlock>
                    </Border>
                    <Grid Name="leftPaneHost" Margin="5,5,0,5" Grid.Row="1" VerticalAlignment="Stretch"/>
                </Grid>
            </Border>
            
            <!--Grid splitter-->
            <GridSplitter Name="lftPaneSplitter" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="7" Height="Auto" Grid.Column="1" BorderThickness="1,0,1,0" Style="{DynamicResource GridSplitterStyle1}">
                <GridSplitter.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                        <GradientStop Color="#FFE7E7E7" Offset="0.513"/>
                    </LinearGradientBrush>
                </GridSplitter.Background>
                <GridSplitter.BorderBrush>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFFFFFF" Offset="0.54"/>
                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                        <GradientStop Color="#00FFFFFF" Offset="0"/>
                    </LinearGradientBrush>
                </GridSplitter.BorderBrush>
            </GridSplitter>
            
            <!--Center pane-->
            <Grid Name="centerPaneHolder" Grid.ColumnSpan="2" Grid.Column="1" Margin="7,5,5,5"/>
        </Grid>

        <!--Status bar.-->
        <Border HorizontalAlignment="Stretch" Margin="5,0,5,5" Grid.Row="2" CornerRadius="5,5,5,5" BorderThickness="1,1,1,1" BorderBrush="#FFE0E0E0">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFBFBFB" Offset="0"/>
                    <GradientStop Color="#FFEAEAEA" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Controls:StatusMessageControl x:Name="StatusControl" Margin="10,2,0,0"/>
        </Border>
    </Grid>
</Window>
